package com.tuo51.evaluate.domain.etc;

import com.tuo51.foudation.model.Domain;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * 用户设置表
 */
@Entity
@Data
@Table(name = "staff_setting", uniqueConstraints = {
        @UniqueConstraint(columnNames = {
                "staffId", "name"
        })
})
public class StaffSetting extends Domain {

    @Column(columnDefinition = "varchar(32) COMMENT '用户id'")
    private String staffId;

    @Column(columnDefinition = "varchar(32) COMMENT '字段名'")
    private String name;

    @Column(columnDefinition = "varchar(32) COMMENT '值'")
    private String value;

    @Column(columnDefinition = "varchar(256) COMMENT '扩展字段'")
    private String ext;

}